import { BasicFetchResult, BasicPageArgs } from '@/api/model/baseModel';

export interface RouterConfigItem {
  routerConfigId: string;
  routerId: string;
  configType: string;
  configName: string;
  configKey: string;
  configValue: string;
}

export interface RouterItem {
  id: string;
  uri: string;
  serverName: string;
  order: string;
  update: boolean;
  predicatesConfig: RouterConfigItem[];
  filtersConfig: RouterConfigItem[];
}

export type RouterConfigType = RouterConfigItem;
export type RouterPageArgs = BasicPageArgs<RouterItem>;
export type PageRouterModel = BasicFetchResult<RouterItem>;
export type RouterConfigModel = RouterConfigItem[];
